const mongoose = require("mongoose")

mongoose.connect("mongodb://127.0.0.1:27017/lativ")

const coon = mongoose.connection

coon.on("open",()=>{
    console.log('success');
})

coon.on("error",()=>{
    console.log("err");
})

module.exports = mongoose